﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Model;
using DAL;

namespace BLL
{
    public class MySubscribeBll
    {
        MySubscribeDal dal = new MySubscribeDal();
        /// <summary>
        /// 我的商品列表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public List<MySubscribe> ListMyGoods(MySubscribe model)
        {
            return dal.ListMyGoods(model);
        }

        /// <summary>
        /// 添加到我的商品库
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public bool AddToMyGoods(List<MySubscribe> list)
        {
            return dal.AddToMyGoods(list);
        }

        /// <summary>
        /// 加入弹窗消息
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public bool AddToShow(MySubscribe m)
        {
            return dal.AddToShow(m);
        }

        /// <summary>
        /// 删除弹窗消息
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public bool DeleteShow(List<MySubscribe> list)
        {
            return dal.DeleteShow(list);
        }

        /// <summary>
        /// 删除我的商品信息
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public bool DeleteMyGoods(List<MySubscribe> list)
        {
            return dal.DeleteMyGoods(list);
        }

        /// <summary>
        /// 添加明细id到hadShowDtlIds
        /// </summary>
        /// <param name="id"></param>
        /// <param name="dtlId"></param>
        /// <returns></returns>
        public bool UpdateShowStatus(int id, string dtlId)
        {
            return dal.UpdateShowStatus(id, dtlId);
        }

        public DataTable MyGoodsShowDt(int sellerId)
        {
            return dal.MyGoodsShowDt(sellerId);
        }
    }
}
